package com.gitee.wsl.struct.grammar.parser.result

import com.gitee.wsl.struct.grammar.parser.token.TokenMatch

data class ParseErrorContext(
    val inputSection: String,
    val lookBehind: Int,
    val lookAhead: Int,
    val previousTokenMatch: TokenMatch?,
)

fun interface ParseErrorContextProvider {
    fun getParseErrorContext(offset: Int): ParseErrorContext?
}